﻿using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace PLCS.SocialHttpApi.WebServiceModels;

// 类的特性一定要加上这个[DataContract]
[DataContract]
[XmlRoot("Data")]
public class WebServiceExampleModel
{
    // 属性的特性要加上[DataMember]
    [DataMember]
    public int CODE { get; set; }

    [DataMember]
    public string MESSAGE { get; set; }

    public WebServiceExampleModel()
    {
        CODE = 0;
        MESSAGE = "成功";
    }

    public WebServiceExampleModel(string MESSAGE)
    {
        CODE = 1;
        this.MESSAGE = MESSAGE;
    }
}